package com.demo.project_template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 畅聊好友关系表
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-22 14:21:51
 */
@Getter
@Setter
@TableName("t_friend")
@ApiModel(value = "Friend对象", description = "畅聊好友关系表")
public class Friend implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private Long id;

    @ApiModelProperty("男用户id")
    @TableField("man_id")
    private Long manId;

    @ApiModelProperty("女用户id")
    @TableField("woman_id")
    private Long womanId;

    @ApiModelProperty(value = "礼物id")
    @TableField("gift_id")
    private Integer giftId;

    @ApiModelProperty("截至日期")
    @TableField("deadline")
    private Date deadline;

    @ApiModelProperty("是否删除")
    @TableField("is_delete")
    @TableLogic
    private String isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
